package xin.core.jwt;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <pre>
 * Jwt Authentication Response
 * </pre>
 *
 * @author lixin
 * @version 1.0
 * @since 2017/11/23 10:50
 */
@Getter
@AllArgsConstructor
public class JwtAuthenticationResponse implements Serializable {
    private final String token;
    private final String userName;
    private final boolean success;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private final Date operTime;
}